home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / clartg.z / clartg
Encoding:
Text File  |  2002-10-03  |  2.9 KB  |  133 lines

  1.  
  2.  
  3.  
  4. CCCCLLLLAAAARRRRTTTTGGGG((((3333SSSS))))                                                          CCCCLLLLAAAARRRRTTTTGGGG((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      CLARTG - generate a plane rotation so that  [ CS SN ] [ F ] [ R ] [ __ ]
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      SUBROUTINE CLARTG( F, G, CS, SN, R )
  13.  
  14.          REAL           CS
  15.  
  16.          COMPLEX        F, G, R, SN
  17.  
  18. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  19.      These routines are part of the SCSL Scientific Library and can be loaded
  20.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  21.      directs the linker to use the multi-processor version of the library.
  22.  
  23.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  24.      4 bytes (32 bits). Another version of SCSL is available in which integers
  25.      are 8 bytes (64 bits).  This version allows the user access to larger
  26.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  27.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  28.      only one of the two versions; 4-byte integer and 8-byte integer library
  29.      calls cannot be mixed.
  30.  
  31. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  32.      CLARTG generates a plane rotation so that [ CS SN ] [ F ] [ R ] [ __ ] .
  33.      [ ] = [ ] where CS**2 + |SN|**2 = 1.    [ -SN  CS  ]     [ G ]     [ 0 ]
  34.  
  35.      This is a faster version of the BLAS1 routine CROTG, except for the
  36.      following differences:
  37.         F and G are unchanged on return.
  38.         If G=0, then CS=1 and SN=0.
  39.         If F=0, then CS=0 and SN is chosen so that R is real.
  40.  
  41.  
  42. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  43.      F       (input) COMPLEX
  44.              The first component of vector to be rotated.
  45.  
  46.      G       (input) COMPLEX
  47.              The second component of vector to be rotated.
  48.  
  49.      CS      (output) REAL
  50.              The cosine of the rotation.
  51.  
  52.      SN      (output) COMPLEX
  53.              The sine of the rotation.
  54.  
  55.      R       (output) COMPLEX
  56.              The nonzero component of the rotated vector.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCLLLLAAAARRRRTTTTGGGG((((3333SSSS))))                                                          CCCCLLLLAAAARRRRTTTTGGGG((((3333SSSS))))
  71.  
  72.  
  73.  
  74. FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
  75.      3-5-96 - Modified with a new algorithm by W. Kahan and J. Demmel
  76.  
  77.  
  78. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  79.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  80.  
  81.      This man page is available only online.
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.